import java.io.IOException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws IOException {
        function f = new function();
        System.out.println("欢迎使用！请输入你要使用的应用！");
        System.out.println("1，下载文件");
        System.out.println("2，上传文件");
        System.out.println("3，删除文件");
        System.out.println("4，查询已经存在的文件");

        Scanner in = new Scanner(System.in);
        switch (in.nextInt()){
            case 1:
                System.out.println("read");
                break;
            case 2:

                System.out.println("请输入你要上传的文件地址：");
                Scanner in1 = new Scanner(System.in);
                f.write(in1.nextLine());
                System.out.println("write");
                break;
            case 3:
                System.out.println("delete");
                break;
            case 4:
                f.select();
                System.out.println("查询已完成");
                break;
            default:
                System.out.println("错误输入，请稍后重试");

        }

    }
}